package com.ereach.overrides;

// public private protected
public class Main2 {
    public static void main(String[] args) {
        Point point1 = new Point(1, 2);
        Point point2 = new Point(1, 2);

        System.out.println(point1 == point2);
        System.out.println(point1.equals(point2));
    }
}
